extends Area2D
@onready var victory: AudioStreamPlayer = $"../音乐音效/游戏结束（通关）"
@export var end123321: int=0;
@onready var victory_ui: CanvasLayer = $"../成功UI"

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.



func _on_body_entered(body: CharacterBody2D) -> void:
	victory.play();
	print("🎉 游戏通关！")
	# 暂停游戏
	get_tree().paused = true
	victory_ui.visible=true
	pass # Replace with function body.


func _on_body_exited(body: Node2D) -> void:
	pass # Replace with function body.
